#ifndef  __MOTOR_H__
#define __MOTOR_H__


#include "stm32f4xx.h"

#define MOTOR_LEFT_SELECT 	0
#define MOTOR_RIGHT_SELECT 1
#define MOTOR_DIR_SELECT_TOWARD  0
#define MOTOR_DIR_SELECT_BACKWARD  1

#define MOTOR_TIMx TIM3
#define MOTOR_DUTY_MAX 2000
#define MOTOR_DUTY_MIN  0
void user_device_pwm_init(void);
void user_device_uart1_init(void);
void user_device_pwm_duty_set(uint8_t motor_select,
																								uint8_t dir_select,
																								uint32_t duty);

#endif
